package com.spsoft.core.model.leqidmz.param;

import com.spsoft.core.annotation.EnumValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@ApiModel(value = "上传发票汇总确认信息入参")
@EqualsAndHashCode(callSuper = true)
@Data
public class UploadInvoiceSummaryParam extends BaseUserInfoParam {

    /**
     * 销售方纳税人识别号
     */
    @ApiModelProperty(value = "销售方纳税人识别号", required = true)
    @NotBlank(message = "销售方纳税人识别号不能为空")
    private String xsfnsrsbh;

    /**
     * 销售方省级税务机关代码
     */
    @ApiModelProperty(value = "销售方省级税务机关代码", required = true)
    @NotBlank(message = "销售方省级税务机关代码不能为空")
    private String xsfsjswjgdm;

    /**
     * 业务类型
     * 0：确认
     * 1：取消
     */
    @ApiModelProperty(value = "业务类型", required = true)
    @NotBlank(message = "业务类型不能为空")
    @EnumValue(strValues = {"0", "1"}, message = "业务类型只能是：0 确认 1 取消")
    private String ywlx;

    /**
     * 平台编号
     */
    @ApiModelProperty(value = "平台编号", required = true)
    @NotBlank(message = "平台编号不能为空")
    private String ptbh;

    /**
     * 月份 yyyy-MM
     */
    @ApiModelProperty(value = "月份", required = true)
    @NotBlank(message = "月份不能为空")
    private String yf;

    /**
     * 蓝字发票数量
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "蓝字发票数量")
    private BigDecimal lzfpsl;

    /**
     * 蓝字发票金额
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "蓝字发票金额")
    private BigDecimal lzfpje;

    /**
     * 蓝字发票税额
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "蓝字发票税额")
    private BigDecimal lzfpse;

    /**
     * 红字发票数量
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "红字发票数量")
    private BigDecimal hzfpsl;

    /**
     * 红字发票金额
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "红字发票金额")
    private BigDecimal hzfpje;

    /**
     * 红字发票税额
     * 业务类型为 “0”时必填
     */
    @ApiModelProperty(value = "红字发票税额")
    private BigDecimal hzfpse;
}
